<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<script type="text/javascript">
$(function(){
	   $('#emailResetForm').click(function(){
		  
		 $(".textInput").val("");
	    });
	  });
</script>
<form id="pagerForm" method="post" action="${ctx}/emailSet/page" >
</form>

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);">
        <input type="hidden" name="pageNum" value="1" />
        <input type="hidden" name="pageSize" value="${page.pageSize}" />
        <input type="hidden" name="numPerPage" value="${page.pageSize}" />
	<div class="searchBar">
	
	<table class="searchContent">
				<tbody>
					<tr>
						<td align="right">用户：</td>
						<td align="left">	<input type="text" name="userName"  class="digits" value="${userName}"/>
						<td>
						<td align="right">邮箱：</td>
						<td align="left"><input type="text" name="email" class="digits" value="${email}"/>
						<td>
						
					</tr>


				</tbody>

			</table>
	
	
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
				
				<li><div class="buttonActive">
							<div class="buttonContent">
								
								<button type="button" id="emailResetForm">重置</button>
							</div>
						</div></li>
			</ul>
		</div>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="${ctx}/emailSet/create" target="dialog" title="新增用户" width="550" height="290" mask="true" maxable="false"minable="false"><span>添加</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="143">
		<thead>
			<tr>
				<th align="center">用户</th>
				<th align="center">手机</th>
				<th align="center">邮箱</th>
				<th align="center">接收异常类型</th>
				<th align="center">是否发送邮箱</th>
				<th align="center">操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${page.data}" var="item">
				<tr target="sid_user" rel="${item.id}">
					<td>${item.userName}</td>
					<td>${item.mobile}</td>
					<td>${item.email}</td>
					<td>${item.errorTypeTemp}</td>
					<td>
					<c:if test="${item.isSend=='0'}">是</c:if>
						<c:if test="${item.isSend=='1'}">否</c:if>
					</td>
					<td>
						<a title="确定要删除吗？" target="ajaxTodo" href="${ctx}/emailSet/delete?uId=${item.id}"  class="btnDel">删除</a>
						<a title="编辑"  href="${ctx}/emailSet/update?uId=${item.id}" target="dialog" width="550" height="290" maxable="false"minable="false" class="btnEdit" mask="true">编辑</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
    <%@include file="/WEB-INF/view/commons/paging.jsp"%>
</div>
